<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=oRWGDbqAGRP8rAyvBBcGHqlVM8ni8mBC"></script>

    <meta name="theme-color" content="#000000">
    <!--
      manifest.json provides metadata used when your web app is added to the
      homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
    -->
    <link rel="manifest" href="%PUBLIC_URL%/manifest.json">
    <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
    <style>
      body,
      html {
        height: 100%
      }

      * {
        padding: 0;
        margin: 0
      }

      .spinner {
        width: 80px;
        height: 80px;
        background-color: #40a6ff;
        margin-top: 24px;
        margin-bottom: 16px;
        -webkit-animation: rotateplane 1.2s infinite ease-in-out;
        animation: rotateplane 1.2s infinite ease-in-out;
      }

      @-webkit-keyframes rotateplane {
        0% {
          -webkit-transform: perspective(120px)
        }
        50% {
          -webkit-transform: perspective(120px) rotateY(180deg)
        }
        100% {
          -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
        }
      }

      @keyframes rotateplane {
        0% {
          transform: perspective(120px) rotateX(0deg) rotateY(0deg);
          -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
        }
        50% {
          transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
          -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
        }
        100% {
          transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
          -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        }
      }
    </style>
    <!--
      Notice the use of %PUBLIC_URL% in the tags above.
      It will be replaced with the URL of the `public` folder during the build.
      Only files inside the `public` folder can be referenced from the HTML.

      Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
      work correctly both with client-side routing and a non-root public URL.
      Learn how to configure a non-root public URL by running `npm run build`.
    -->
    <title>点点外卖</title>
  </head>
  <body onload="documentLoaded()">
    <noscript>
      You need to enable JavaScript to run this app.
    </noscript>
    <div id="box" style="display: flex;flex-direction: column;align-items: center;width: 100%;padding-top: 10%; height: 100%;background:#efefef">
      <p style="font-size: 40px">点点外卖后台</p>
      <div class="spinner"></div>
      <p id="loadingText">加载中...</p>
    </div>
    <div id="root"></div>
    <!--
      This HTML file is a template.
      If you open it directly in the browser, you will see an empty page.

      You can add webfonts, meta tags, or analytics to this file.
      The build step will place the bundled scripts into the <body> tag.

      To begin the development, run `npm start` or `yarn start`.
      To create a production bundle, use `npm run build` or `yarn build`.
    -->
    <script>
        const box = document.querySelector('#box');

        /**
         * 加载完后调用这个方法，关闭加载动画，在body的onload中调用就可以了
         */
        function documentLoaded() {
            box.remove();
        }
        window.BMap=BMap;
    </script>
  </body>
</html>
